package org.september.pisces.led;

import org.september.pisces.led.controller.LedController;
import org.september.pisces.module.api.PiscesModule;
import org.september.pisces.module.api.WebMenu;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Configuration
@ComponentScan(basePackageClasses = LedModule.class)
public class LedModule implements PiscesModule {

	public static String 情报板设计="情报板设计";

	private static final Map<String, List<WebMenu>> moduleMap = new HashMap<>();
	static {
		List<WebMenu> menus1 = new ArrayList<>();
		menus1.add(new WebMenu("情报板设计-设计页面", LedController.LED_ledList, "layui-icon-website")
				.addPermission("页面", LedModulePermission.情报板展示.getUrls()));

		moduleMap.put(情报板设计, menus1);

	}

	//TODO 权限如何在后台分配
	public LedModule(){
		System.out.println(this.getClass().getName()+" init..");
	}

}
